package com.emenu;

import com.emenu.bean.FunBean;
import com.emenu.bean.Menu;

import android.os.Bundle;
import android.support.v4.app.FragmentActivity;
import android.widget.TextView;

public class FunMainActivity extends FragmentActivity {
	private TextView page_pathvalue;
	FunTimeFragment funTimeFragment;
	FunRightFragment funRightFragment;
 
	@Override
	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.funmain);
		
		page_pathvalue = (TextView) findViewById((R.id.funpage_path));
		funTimeFragment = (FunTimeFragment) getSupportFragmentManager()
				.findFragmentById(R.id.funleft);

		funRightFragment = (FunRightFragment) getSupportFragmentManager()
				.findFragmentById(R.id.funright);

		funRightFragment.setFunMemberListener(new FunMemberListener() {

			@Override
			public void onFunMemberSelected(FunBean FBean) {
				page_pathvalue.setText(FBean.getName());

			}
		});
	}
	 
}
